import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 根据手机页面宽度修改html字体大小
import MobileAdaptation from "@/hooks/MobileAdaptation";

// 引入vant组件库样式
import "vant/lib/index.css";
import "./assets/style/common.less";

//字体图标
// import "./assets/font_icon/iconfont";
import "@/assets/font_icon/iconfont";

import {
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  PullRefresh,
  NoticeBar,
  TreeSelect,
  IndexBar,
  IndexAnchor,
  Popup,
  // Overlay,
  // Sidebar,
  // SidebarItem,
  // SubmitBar,
  // SwipeCell,
  Button,
  Tab,
  Tabs,
  // Empty,
  Form,
  Field,
  Cell,
  CellGroup,
  Checkbox,
  // Dialog,
  // PasswordInput,
  // NumberKeyboard,
  // Uploader,
  CountDown,
} from "vant";
const app = createApp(App);
app
  .use(Tabbar)
  .use(TabbarItem)
  .use(Swipe) //轮播图
  .use(SwipeItem)
  .use(PullRefresh) //下拉刷新
  .use(NoticeBar) // 通知栏
  .use(TreeSelect) //分类选择
  .use(IndexBar) //索引栏
  .use(IndexAnchor)
  .use(Popup) //弹出层
  // .use(Overlay) //弹出框
  // .use(Sidebar) //侧边导航
  // .use(SidebarItem)
  // .use(SubmitBar) //提交订单
  // .use(SwipeCell) //滑动单元格
  .use(Button) //按钮
  .use(Tab) //标签页
  .use(Tabs)
  // .use(Empty) //空状态
  .use(Form) //表单
  .use(Cell)
  .use(CellGroup)
  .use(Checkbox) //复选框
  .use(Field)
  // .use(Dialog) //弹出框
  // .use(PasswordInput) //密码输入框
  // .use(NumberKeyboard) //数字键盘
  // .use(Uploader) //上传图片
  .use(CountDown) //倒计时
  .use(store)
  .use(router)
  .use(MobileAdaptation)
  .mount("#app");
